<script id="videoTpl" type="text/html">
<div class="hhq-box" style="margin:20px;">
    <div class="hhq-box-hd">视频组</div>
    <a class="layui-btn layui-btn-sm layui-btn-warm videoSubmit" lay-submit lay-filter="videoSubmit" style="float: right">保存设置</a>
    <div class="hhq-box-bd">
        <div class="layui-clear" id="videoImgViewModuleParent">
            <div class="layui-form-item">
                <label class="layui-form-label">视频</label>
                <a type="button" class="layui-btn layui-btn-sm uploadVideoImg" onclick="open_iframe_dialog('{:U('content/media/upload')}','添加视频',['70%','70%'],0)">
                    <i class="layui-icon">&#xe67c;</i>上传视频
                    <input type="hidden" name="id" value="{{d.id}}">
                </a>
                <a type="button" class="layui-btn layui-btn-sm layui-btn-danger" onclick="delThisVideo(this);" >
                    删除视频
                </a>
                <div style="padding-top:10px;margin-left: 110px">
                    <div class="img-wrap thisImg"  style="background:#f8f8f8;text-align:center;">
                        {{#  if(d.url != ''){ }}
                        <img src="{{d.fengmian}}">
                        {{#  } else { }}
                        <span style="font-size:60px;line-height:207px;color:#eee;">封面</span>
                        {{#  } }}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">视频地址</label>
                <div class="layui-input-inline" style="width: 300px">
                    <input type="text" name="url" value="{{d.url}}" placeholder="" class="layui-input" >
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">封面</label>
                <div class="layui-input-inline" style="width: 300px">
                    <input type="text" name="fengmian" value="{{d.fengmian}}" placeholder="" class="layui-input" >
                </div>
            </div>
            <!--<div class="layui-form-item">-->
                <!--<label class="layui-form-label">链接地址</label>-->
                <!--<div class="layui-input-inline" style="width: 300px">-->
                    <!--<input type="text" name="link" value="{{d.link}}" placeholder="http://" class="layui-input" >-->
                <!--</div>-->
            <!--</div>-->
            <div class="layui-form-item">
                <label class="layui-form-label">自动播放</label>
                <div class="layui-input-inline" style="width: 300px">
                    <input type="text" name="autoplay" value="{{d.autoplay}}" placeholder="true或者false" class="layui-input" >
                </div>
            </div>
        </div>
    </div>
</div>
</script>